<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/sys/menu/";  //应用的地址名
%>
<script type="text/javascript">
var ops = <%=request.getAttribute("ops") %>;
$(function(){
	$('#chkAll').click(function(){
		$('input[chk]').each(function(){
			$(this).attr('checked',$('#chkAll').attr('checked'));
			getSelectedUser($(this));
		});
	});
	for(var i=0;i<ops.length;i++){
		$('#'+ops[i]['vcId']).html(ops[i]['vcName'].replace('\n','<br>'));
	}
});
</script>
    
<table class="tb_list_gen" style="height:auto;" align="center">
    <caption><s:property value="#parameters.orgName"/></caption>
    <thead>
        <tr>
            <th style="width:10%" align="center"><input type="checkbox" id="chkAll" /></th>
            <th style="width:95px">登录名</th>
            <th style="width:95px">人员名称</th>
        </tr>
    </thead>
    <tbody>
    <s:iterator value="#request.userList" status="operate">
        <tr>
            <td align="center"><input type="checkbox" chk=1 onclick="getSelectedUser(this)"  name="userid" value="<s:property value="vcId"/>"/></td>
            <td><s:property value="vcLogName"/></td>
            <td><s:property value="vcName"/></td>
        </tr>
   </s:iterator>    
    </tbody>
</table>   